/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package common;

import Excepcoes.AlreadyFollowing;
import Excepcoes.DoubleRegistracion;
import Excepcoes.InvalidMail;
import Excepcoes.InvalidName;
import Excepcoes.InvalidSearch;
import Excepcoes.NoDetails;
import Excepcoes.NoFollers;
import Excepcoes.NoFollowing;
import Excepcoes.NoTweets;
import Excepcoes.WrongLog;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author Daniel
 */
public interface RMIconnectionCliente extends Remote{

    public Menssagem handleData(Menssagem mensagem) throws WrongLog, DoubleRegistracion, InvalidMail, InvalidName, NoFollers, NoFollowing, InvalidSearch, AlreadyFollowing, NoTweets, NoDetails, RemoteException;
    public void adicionaLigado(RMITweetInterface recTwi, String name) throws RemoteException;
    public String efectuaPing() throws RemoteException;
}
